/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Mdf Rmim Row Type</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * vocSet: T10063 (C-0-T10063-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getMdfRmimRowType()
 * @model extendedMetaData="name='MdfRmimRowType'"
 * @generated
 */
public enum MdfRmimRowType implements Enumerator {
	/**
	 * The '<em><b>Assoc</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ASSOC_VALUE
	 * @generated
	 * @ordered
	 */
	ASSOC(0, "assoc", "assoc"),

	/**
	 * The '<em><b>Attr</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ATTR_VALUE
	 * @generated
	 * @ordered
	 */
	ATTR(1, "attr", "attr"),

	/**
	 * The '<em><b>Class</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CLASS_VALUE
	 * @generated
	 * @ordered
	 */
	CLASS(2, "class", "class"),

	/**
	 * The '<em><b>Rmim</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RMIM_VALUE
	 * @generated
	 * @ordered
	 */
	RMIM(3, "rmim", "rmim"),

	/**
	 * The '<em><b>Stc</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #STC_VALUE
	 * @generated
	 * @ordered
	 */
	STC(4, "stc", "stc");

	/**
	 * The '<em><b>Assoc</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Assoc</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ASSOC
	 * @model name="assoc"
	 * @generated
	 * @ordered
	 */
	public static final int ASSOC_VALUE = 0;

	/**
	 * The '<em><b>Attr</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Attr</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ATTR
	 * @model name="attr"
	 * @generated
	 * @ordered
	 */
	public static final int ATTR_VALUE = 1;

	/**
	 * The '<em><b>Class</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Class</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CLASS
	 * @model name="class"
	 * @generated
	 * @ordered
	 */
	public static final int CLASS_VALUE = 2;

	/**
	 * The '<em><b>Rmim</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Rmim</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RMIM
	 * @model name="rmim"
	 * @generated
	 * @ordered
	 */
	public static final int RMIM_VALUE = 3;

	/**
	 * The '<em><b>Stc</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Stc</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #STC
	 * @model name="stc"
	 * @generated
	 * @ordered
	 */
	public static final int STC_VALUE = 4;

	/**
	 * An array of all the '<em><b>Mdf Rmim Row Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final MdfRmimRowType[] VALUES_ARRAY =
		new MdfRmimRowType[] {
			ASSOC,
			ATTR,
			CLASS,
			RMIM,
			STC,
		};

	/**
	 * A public read-only list of all the '<em><b>Mdf Rmim Row Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<MdfRmimRowType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Mdf Rmim Row Type</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MdfRmimRowType get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MdfRmimRowType result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Mdf Rmim Row Type</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MdfRmimRowType getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MdfRmimRowType result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Mdf Rmim Row Type</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MdfRmimRowType get(int value) {
		switch (value) {
			case ASSOC_VALUE: return ASSOC;
			case ATTR_VALUE: return ATTR;
			case CLASS_VALUE: return CLASS;
			case RMIM_VALUE: return RMIM;
			case STC_VALUE: return STC;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private MdfRmimRowType(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //MdfRmimRowType
